package cn.iocoder.yudao.module.enterprise.controller.admin.reductionscene.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
* 减排场景 Base VO，提供给添加、修改、详细的子 VO 使用
* 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
*/
@Data
public class ReductionSceneBaseVO {

    @Schema(description = "减排场景名称", required = true)
    @NotNull(message = "减排场景名称不能为空")
    private String name;

    @Schema(description = "减排量量化类型", required = true)
    @NotNull(message = "减排量量化类型不能为空")
    private Integer type;

    @Schema(description = "减排场景描述", required = true)
    @NotNull(message = "减排场景描述不能为空")
    private String sceneDesc;

    @Schema(description = "总减排量设定类型")
    private Integer totalValueType;

    @Schema(description = "总减排量")
    private Double totalValue;

    @Schema(description = "总减排单位")
    private String totalUnit;

    @Schema(description = "单位减排量设定类型")
    private Integer perValueType;

    @Schema(description = "单位减排量")
    private Double perValue;

    @Schema(description = "单位减排量单位")
    private String perUnit;

}
